﻿using System;

namespace MIC_GUI.Model
{
    /// <summary>
    /// A simple DataValue item which is used to plot on the Graph
    /// if the Graph is not paused
    /// </summary>
    public class DataItem
    {
        #region properties
        /// <summary>
        /// Gets or Sets the value to be displayed on the graph
        /// </summary>
        public double DataValue { get; set; }

        /// <summary>
        /// Gets or Sets sample time
        /// </summary>
        public TimeSpan TimeSampled { get; set; }

        /// <summary>
        /// Gets or Sets the sequence number of this value.
        /// </summary>
        public long SampleSequenceNumber { get; set; }
        #endregion

        #region Overrides
        public override string ToString()
        {
            return String.Format(
                "Value : {0} - Time Sampled : {1}, SampleSequence : {2}", 
                DataValue, TimeSampled, SampleSequenceNumber);
        }
        #endregion
    }
}
